<!--{if $ajax}-->
<div class="box_title titbg">
    <div class="closer sprite i_close" onclick="Mui.box.close()"></div>
    {lang album_need_auth|`$album_info['name']`}
</div>
<div class="box_container">
    <form id="priv_form" action="{link ctl=photos act=check_priv}" type="post" onsubmit="return false;" style="padding-left:20px;">
        <input type="hidden" name="album_id" value="{$album_info['id']}" />
        <input type="hidden" name="enter_album" value="1" />
    {if $album_info['priv_type'] == 1}
        <div class="field">
            <div class="label">{lang pls_input_passwd} *</div>
            <div class="ipts"><input type="password" name="priv_pass" class="inputstyle iptw2" value="" /></div>
            <div class="clear"></div>
        </div>
        <script>
            $('#priv_form').find('input[name=priv_pass]').focus();
        </script>
    {elseif $album_info['priv_type'] == 2}
    <div class="field">
        <div class="label">{lang question} </div>
        <div class="ipts">{$album_info['priv_question']}</div>
        <div class="clear"></div>
    </div>
    <div class="field">
        <div class="label">{lang pls_input_answer} *</div>
        <div class="ipts"><input type="text" name="priv_answer" class="inputstyle iptw2" value="" /></div>
        <div class="clear"></div>
    </div>
    <script>
        $('#priv_form').find('input[name=priv_answer]').focus();
    </script>
    {/if}
    <div class="field">
        <div class="label"> &nbsp;</div>
        <div class="ipts"><input type="submit" name="submit" class="ylbtn" value="{lang submit}" onclick="Mui.form.sendAuto('priv_form')" /> <a href="javascript:void(0)" onclick="Mui.box.close()" class="ml10">{lang cancel}</a></div>
        <div class="clear"></div>
    </div>
    </form>
</div>
<!--{else}-->
{template block/mini_header}
<div style="padding-top:60px;">
<div id="center_box">
{if $album_info['priv_type'] == 3}
    <div class="meiu_notice_div">
        <div class="failed">{lang not_authorized}</div>
    </div>
{else}
    <div class="title title_c">{lang album_need_auth|`$album_info['name']`}</div>
    <form id="priv_form" action="{link ctl=photos act=check_priv}" type="post" onsubmit="return false;" style="padding-left:20px;">
        <input type="hidden" name="album_id" value="{$album_info['id']}" />
    {if $album_info['priv_type'] == 1}
        <div class="field">
            <div class="label">{lang pls_input_passwd} *</div>
            <div class="ipts"><input type="password" name="priv_pass" class="inputstyle iptw2" value="" /></div>
            <div class="clear"></div>
        </div>
    {elseif $album_info['priv_type'] == 2}
    <div class="field">
        <div class="label">{lang question} </div>
        <div class="ipts">{$album_info['priv_question']}</div>
        <div class="clear"></div>
    </div>
    <div class="field">
        <div class="label">{lang pls_input_answer} *</div>
        <div class="ipts"><input type="text" name="priv_answer" class="inputstyle iptw2" value="" /></div>
        <div class="clear"></div>
    </div>
    {/if}
    <div class="field">
        <div class="label"> &nbsp;</div>
        <div class="ipts"><input type="submit" name="submit" class="ylbtn" value="{lang submit}" onclick="Mui.form.sendAuto('priv_form')" /> <a href="javascript:history.back();" class="ml10">{lang cancel}</a></div>
        <div class="clear"></div>
    </div>
    </form>
{/if}
    
    <div class="admin_field mt15 gray">{lang owner_could}<a href="javascript:void(0)" onclick="Mui.box.show('{link ctl=users act=login}',true)">{lang click_to_login}</a>. {lang you_can_also}<a href="{link ctl=default}">{lang back_to_index}</a>.</div>
</div>
</div>
<style>
.footer{
    text-align:center;
}
</style>
{template block/footer}
<!--{/if}-->